<?php
/**
 * Created by PhpStorm.
 * User: tangchao
 * Date: 19-4-19
 * Time: 下午3:00
 */

//固定数组 预先分配内存空间
$fixArr = new SplFixedArray(10);

$fixArr[0] = 1;
$fixArr[9] = 9;

var_dump($fixArr);